<?php
namespace Hive\Contact;
/**
 * Contact Status Object. 
 * 
 * It represant a status of a contact.
 * Contact can be create from differents sources (Website,WS,Foreground...)
 * we need to have a status validation workflow to be sure that data has been
 * filled correctly.
 *
 * @author Xavier VILAIN
 * @package common
 * @subpackage ressource
 * 
 * @property string	$status			Status code (4)
 * @property string	$language		Status language (5) 
 * @property string	$label			Label
 * @property bool	$standard		Is a standard type (can't be deleted)
 * @property bool	$active			Is an active type (can be selected)
 * @property bool 	$loekz 			Deletion Flag if true is an been deleted
 */
class Status extends \Fox\Object\Versioned\Customizing {
		
}
\Fox\Dao::infos(Status::className(),new \Fox\Object\Info('contact_statuses', \Fox\Databases::DB_APP));

// Link to i18n elements
\Fox\Object\Links::add(\Fox\Dao::link(Status\I18n::className(),Status::LINK_SOURCE_REFERENCE)
->to(Status::className(), Status::LINK_I18N)
->on('status')
//->cache(new \Fox\Dao\MemoryCacheZone(\Fox\Dao\MemoryCacheZone::PERIOD_FOREVER,Status::cacheDirectory()))
->versionFrom());

// Link to status type
/*
\Fox\Object\Links::add(\Fox\Dao::link(\Hive\Contact\Status\Type::className(),\Hive\Contact\Status\Type::LINK_CONTACT)
->to(Status::className(), Status::LINK_TYPE)
->on('type')
->oneToOne()
);
*/